package cn.hn.tx.uchpoll.service.impl;

import cn.hn.comm.ibatis.BaseDAO;
import cn.hn.tx.uchblog.model.UchomeBlogField;
import cn.hn.tx.uchpoll.model.UchomePoll;
import cn.hn.tx.uchpoll.model.UchomePollOption;
import cn.hn.tx.uchpoll.service.IUchomePollService;

public class UchomePollServiceImpl implements IUchomePollService {

	final String NAMESPACE = "cn.hn.tx.uchpoll.dao";
	
	// DAO基类
	private BaseDAO baseDAO;
	
	//发布动态地址
	private String url_publish_feed;	
	
	public Integer insertUchomePoll(UchomePoll uchomePoll) {
		return (Integer) baseDAO.insert(NAMESPACE, "insertUchomePoll", uchomePoll);
	}

	public void insertUchomePollField(UchomeBlogField ubf) {
		baseDAO.insert(NAMESPACE, "insertUchomePollField", ubf);

	}

	public void insertUchomePollOption(UchomePollOption upo) {
		baseDAO.insert(NAMESPACE, "insertUchomePollOption", upo);
	}

	public void publishUchomePoll(UchomePoll uchomePoll)
	{
		
	}
	
	public BaseDAO getBaseDAO() {
		return baseDAO;
	}

	public void setBaseDAO(BaseDAO baseDAO) {
		this.baseDAO = baseDAO;
	}

	public String getUrl_publish_feed() {
		return url_publish_feed;
	}

	public void setUrl_publish_feed(String url_publish_feed) {
		this.url_publish_feed = url_publish_feed;
	}

}
